<template>
  <el-image :src="url" class="img-container">
    <template #error>
      <!-- 静态资源 就近维护 -->
      <img src="./img/head.jpg" alt="">
    </template>
  </el-image>
</template>

<script>
export default {
  props: {
    url: {
      type: String,
      default: ''
    }
  }
}
</script>

<style>
.img-container {
 /*  width: 70px;
  height: 70px; */
  border-radius: 50%;
}

</style>
